﻿Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
    function EndRequestHandler(sender, args){
    if (args.get_error() != undefined){
        args.set_errorHandled(true);
    }
}